


//
//  NMineCell.m
//  nncloud
//
//  Created by macfai on 2018/9/18.
//  Copyright © 2018年 youedata. All rights reserved.
//



#import "NMineCell.h"

@interface NMineCell()




@end

@implementation NMineCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle = 0;
    // Initialization code
}

-(void)configWithPicName:(NSString *)pic title:(NSString *)name withIndexPath:(NSIndexPath *)indexPath{
    
    self.LogoImage.image = WDImgName(pic);
    
    self.nameLabel.text = name;
    
    if ([self.flag isEqualToString:@"hist"]) {
        return;
    }
    
    if (indexPath.section==0) {
        
        if ([NUserModel shareInstance].isLogin) {
            
            self.setLabel.hidden = false;
            
        }else{
            
            self.setLabel.hidden = TRUE;
        }
        
        self.headWidth.constant = 60.f;
        self.headHeight.constant = 60.f;
        self.nameLabelLeftMargin.constant = 100.f;
        
        self.LogoImage.layer.cornerRadius = 30.f;
        self.LogoImage.layer.masksToBounds = YES;
    }
    
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
